package com.pretty.test.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统字典实体类
 * @author dujianyu
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class PetsDict extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     * 名称
     */
    private String name;

    /**
     * 编码
     */
    private String code;

    /**
     * 字典键
     */
    private Integer dictKey;

    /**
     * 字典值
     */
    private String dictValue;

    /**
     * 父级id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /**
     * 是否开启
     */
    private Integer isRun;


}
